package com.younion.vo;

import java.util.Date;

import com.younion.common.base.BaseVO;
import com.younion.common.base.IFilterVO;

 
public class UserVO extends BaseVO implements Cloneable{

	/**  */
	private static final long serialVersionUID = -1L;
 
	private Integer id;

 
	private String account;

 
	private String name;
 
	private String password;

	private Integer role;

	private CustomerVO customer;

	private String roleName;
	
 
	private String employId;

 
	private String tel;

 
	private String email;

 
	private Integer status;

 
	private Date createDate;

	private String userToken;
	
	private Integer customerId;
	private String customerName;
	
	private Date gtcreateDate;
	private Date ltcreateDate;

	public String getUserToken() {
		return userToken;
	}

	public void setUserToken(String userToken) {
		this.userToken = userToken;
	}

	/**
	 * 
	 */
	public UserVO() {
	}

	public UserVO(String account) {
		this.account = account;
	}

	/**
	 * @return the id
	 */
	public Integer getId() {
		return id;
	}

	/**
	 * @param id
	 *            the id to set
	 */
	public void setId(Integer id) {
		this.id = id;
	}

	/**
	 * @return the account
	 */
	public String getAccount() {
		return account;
	}

	/**
	 * @param account
	 *            the account to set
	 */
	public void setAccount(String account) {
		this.account = account;
	}

	/**
	 * @return the name
	 */
	public String getName() {
		return name;
	}

	/**
	 * @param name
	 *            the name to set
	 */
	public void setName(String name) {
		this.name = name;
	}

	/**
	 * @return the password
	 */
	public String getPassword() {
		return password;
	}

	/**
	 * @param password
	 *            the password to set
	 */
	public void setPassword(String password) {
		this.password = password;
	}

	public CustomerVO getCustomer() {
		return customer;
	}

	public void setCustomer(CustomerVO customer) {
		this.customer = customer;
	}

	public Integer getRole() {
		return role;
	}

	public void setRole(Integer role) {
		this.role = role;
	}

	public String getRoleName() {
		return roleName;
	}

	public void setRoleName(String roleName) {
		this.roleName = roleName;
	}

	public String getEmployId() {
		return employId;
	}

	public void setEmployId(String employId) {
		this.employId = employId;
	}

	public String getTel() {
		return tel;
	}

	public void setTel(String tel) {
		this.tel = tel;
	}

	public String getEmail() {
		return email;
	}

	public void setEmail(String email) {
		this.email = email;
	}

	public Integer getStatus() {
		return status;
	}

	public void setStatus(Integer status) {
		this.status = status;
	}

	public Date getCreateDate() {
		return createDate;
	}

	public void setCreateDate(Date createDate) {
		this.createDate = createDate;
	}

	public Integer getCustomerId() {
		return customerId;
	}

	public void setCustomerId(Integer customerId) {
		if(this.getCustomer() != null)
			this.customer.setId(customerId);
		this.customerId = customerId;
	}

	public String getCustomerName() {
		return customerName;
	}

	public void setCustomerName(String customerName) {
		this.customerName = customerName;
	}

	public Date getGtcreateDate() {
		return gtcreateDate;
	}

	public void setGtcreateDate(Date gtcreateDate) {
		this.gtcreateDate = gtcreateDate;
	}

	public Date getLtcreateDate() {
		return ltcreateDate;
	}

	public void setLtcreateDate(Date ltcreateDate) {
		this.ltcreateDate = ltcreateDate;
	}
	
/*	@Override
	public void filter(){
		setCustomerId(getUserOfCustomerId());
	}*/

}
